package com.bob.like.constant;

// 示例：ThumbConstant.java
public class ThumbConstant {
    /**
     * 用户点赞键模板：thumb:user:{userId}:blog:{blogId}
     */
    public static final String USER_THUMB_KEY_PREFIX = "thumb:user:%s:blog:%s";

    /**
     * 临时点赞键模板：thumb:temp:{time}
     */
    public static final String TEMP_THUMB_KEY_PREFIX = "thumb:temp:%s";

    /**
     * 点赞总数键模板：thumb:blog:{blogId}:sum
     */
    public static final String THUMB_SUM_KEY_PREFIX = "thumb:blog:%s:sum";

    /**
     * 用户每日点赞计数键模板：thumb:blog:{blogId}:user:{userId}:{date}
     */
    public static final String USER_DAILY_THUMB_KEY = "thumb:blog:%s:user:%s:%s";

    /**
     * 最近点赞键模板：thumb:blog:{blogId}:recent
     */
    public static final String RECENT_THUMB_KEY = "thumb:blog:%s:recent";
    public static final long THUMB_EXPIRE_TIME = 60 * 60 * 24 * 30;

    public static final long THUMB_COUNT_LIMIT = 10;
}

